package a.j;

import a.d.w;
import a.e.c;

import java.awt.*;
import java.awt.geom.Point2D;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;

public class zd
{
  protected double a;
  protected double b;
  protected tb c;
  public static boolean d;
  
  public zd()
  {
    this(0.0D, 0.0D);
  }
  
  public zd(double paramDouble1, double paramDouble2)
  {
    this.a = paramDouble1;
    this.b = paramDouble2;
  }
  
  public zd(zd paramzd)
  {
    this(paramzd.a, paramzd.b);
  }
  
  public zd a()
  {
    return new zd(this.a, this.b);
  }
  
  public zd b()
  {
    return new zd(g(), -f());
  }
  
  void a(tb paramtb)
  {
    this.c = paramtb;
  }
  
  public tb c()
  {
    return this.c;
  }
  
  public boolean a(ld paramld, double paramDouble1, double paramDouble2, double paramDouble3, double paramDouble4, Point2D paramPoint2D)
  {
    return paramld.b(paramDouble1, paramDouble2, paramDouble3, paramDouble4, paramPoint2D);
  }
  
  public void a(Graphics2D paramGraphics2D, ld paramld)
  {
    if (tb.a(this.c, paramGraphics2D))
    {
      Rectangle2D.Double localDouble = hb.a().k;
      localDouble.width = (localDouble.height = 6.0D);
      localDouble.x = (a(paramld) - 3.0D);
      localDouble.y = (b(paramld) - 3.0D);
      paramGraphics2D.setColor(Color.black);
      paramGraphics2D.fill(localDouble);
    }
  }
  
  protected void d()
  {
    if (this.c != null) {
      this.c.Q();
    }
  }
  
  public boolean a(double paramDouble1, double paramDouble2)
  {
    boolean bool = ld.E;
    if (!bool) {
      if (this.c.P())
      {
        if (!bool) {
          if (this.c.k() == this)
          {
            if (bool) {
              break label63;
            }
            localld = this.c.h();
            if (!ld.D) {
              break label65;
            }
          }
        }
        label63:
        ld localld = this.c.g();
        label65:
        double d1 = a(localld);
        double d2 = b(localld);
        if (((bool) || (d1 - 3.0D <= paramDouble1)) && ((bool) || (d1 + 3.0D >= paramDouble1)) && ((bool) || (d2 - 3.0D <= paramDouble2))) {
          if (bool) {}
        }
        return d2 + 3.0D >= paramDouble2;
      }
    }
    return false;
  }
  
  w e()
  {
    boolean bool = ld.E;
    if (!bool) {
      if (this.c.k() == this)
      {
        if (bool) {
          break label44;
        }
        localld = this.c.h();
        if (!ld.D) {
          break label45;
        }
      }
    }
    label44:
    ld localld = this.c.g();
    label45:
    return new w(a(localld), b(localld));
  }
  
  public void a(Rectangle2D paramRectangle2D, ld paramld)
  {
    paramRectangle2D.add(a(paramld), b(paramld));
  }
  
  public double f()
  {
    return this.a;
  }
  
  public double g()
  {
    return this.b;
  }
  
  public double a(ld paramld)
  {
    return paramld.A() + this.a;
  }
  
  public double b(ld paramld)
  {
    return paramld.B() + this.b;
  }
  
  public void a(double paramDouble)
  {
    d();
    this.a = paramDouble;
  }
  
  public void b(double paramDouble)
  {
    d();
    this.b = paramDouble;
  }
  
  public void b(double paramDouble1, double paramDouble2)
  {
    d();
    this.a = paramDouble1;
    this.b = paramDouble2;
  }
  
  public void a(ObjectOutputStream paramObjectOutputStream)
    throws IOException
  {
    paramObjectOutputStream.writeByte(1);
    paramObjectOutputStream.writeFloat((float)this.a);
    paramObjectOutputStream.writeFloat((float)this.b);
  }
  
  public void a(ObjectInputStream paramObjectInputStream)
    throws IOException, ClassNotFoundException
  {
    boolean bool2 = ld.E;
    boolean bool1 = ld.D;
    if (!bool2) {}
    switch (paramObjectInputStream.readByte())
    {
    case 0: 
      paramObjectInputStream.readByte();
      this.a = paramObjectInputStream.readFloat();
      this.b = paramObjectInputStream.readFloat();
      if (!bool2) {
        if (!bool1) {
          return;
        }
      }
    case 1: 
      this.a = paramObjectInputStream.readFloat();
      this.b = paramObjectInputStream.readFloat();
      if (!bool1) {
        return;
      }
      break;
    }
    throw new c();
  }
  
  public String toString()
  {
    return "Port: (" + f() + ',' + g() + ')';
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.zd

 * JD-Core Version:    0.7.0.1

 */